import csv
f=open("3.2.csv",'w+',newline='',encoding='utf-8')
f.write('1,2,3\n')
f.write('4,5,6\n')
f.write('7,8,9\n')
f.seek(0)
r=csv.reader(f)
for row in r:
    print(row)